import java.io.*;
public class CheckInOne {
	public static void main(String[] args) {
		// Creates a valid .ics calendar file with the given requirements.
		try {
			System.out.println("Creating file event.ics.");
			FileWriter fw = new FileWriter(new File("event.ics"));
			fw.write("BEGIN:VCALENDAR" +
					"\r\nBEGIN:VEVENT" +
					"\r\nVERSION:2.0" +
					"\r\nDTEND;TZID=Pacific/Honolulu:20130814T130000" +
					"\r\nSUMMARY:Study for Exam" +
					"\r\nLOCATION:Hamilton Library" +
					"\r\nDTSTART;TZID=Pacific/Honolulu:20130814T100000" +
					"\r\nEND:VEVENT" +
					"\r\nEND:VCALENDAR" +
					"\r\n");
			fw.close();
			System.out.println("Done.");
		} catch (IOException e) {
			System.err.println("An error occurred when opening the file. Aborting.");
			return;
		}
	}
}